<%@page import="about3.About3Vo"%>
<%@page import="java.util.ArrayList"%>
<%@page import="about3.About3DTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script src='about3.js'></script>
</head>
<body>

<jsp:useBean id="vo" scope="page" class="about3.About3Vo" />
<jsp:setProperty property="*" name="vo"/>

<form action="input_result.jsp" method="post"> 
<div id='title'>
</div>

<div id='middle'>
<font style='font-size:70px;' color='#ff00dd'>GUEST BOOK</font>
</div>
<br/><br/>


<div id='div3'>
<label>글쓴이</label>
<input type='text' name='mid' id='mid'>
<label>비밀번호</label>
<input type='password' name='pwd' id='pwd'><br/>
<textArea name='text' id='text' cols="100" rows="5" ></textArea><br/>
<input type="submit" name='btn' id='btnInput' value='등록'>
</div>
<p/>
</form>

<form name="h" method="post">
<%
About3DTO dto=new About3DTO ();
dto.setVo(vo);
ArrayList<About3Vo> al = dto.select();

dto.SelectOne();
%>

<%
for(int a=0;a<al.size();a++ ){ 
	About3Vo v = al.get(a);
	
%>
<div class='guest_modify'>
	<div class ='guest_list_rno'></div>
	<div class='guest_list_mid'></div>
	<div class='guest_list_text'></div>
</div>
<div class='guest_btn'>
	<br/>
	
	<input type='button' name='guest_btn_modify' id ='guest_btn_modify' value='수정'>
	<input type='button' name='guest_btn_delete' id='guest_btn_delete' value='삭제'><br/>

<textArea name='text' id ='text' cols="100" rows="5"><%=v.getText() %></textArea><br/>
</div>
</form>

<%
}
%>

</body>
<script>about3Init();</script>
</html>